// arg0 - id of parent
// arg1 - Event Prefab to link to

var event, theinstance, prefab;
theinstance = argument0;
prefab = argument1;

event = instance_create(0, 0, Event);
event.parent = theinstance;
event.event = prefab;
ds_list_add(theinstance.events, event);
return event;
